import 'package:equatable/equatable.dart';

/// 文章模型
class Post extends Equatable {
  /// 文章ID
  final int id;
  /// 文章标题
  final String title;
  /// 文章内容
  final String body;

  const Post({this.id, this.title, this.body});

  @override
  List<Object> get props => [id, title, body];

  @override
  String toString() => "Post { id: $id }";
}
